#!/bin/bash

 ssh  root@47.102.211.43 "mkdir -p /opt/project/houxin/{houxin-register,houxin-admin,houxin-auth,houxin-gateway,houxin-ui}"

rsync -av /opt/project/houxin/services/houxin-obu/houxin-register/houxin-register.jar  47.102.211.43:/opt/project/houxin/houxin-register/
rsync -av /opt/project/houxin/services/houxin-obu/houxin-register/{Dockerfile,register-start.sh}  47.102.211.43:/opt/project/houxin/houxin-register/

ssh   root@47.102.211.43  "
 cd /opt/project/houxin/houxin-register

 chmod +x  register-start.sh

 ./register-start.sh

"
